const mongo = require("mongoose");

mongo.connect('mongodb://root:root@123.57.7.181:27017/project?authSource=admin')

const link = mongo.connection

link.on('open', () => {
  console.log('连接成功');
})

link.on('err', (err) => {
  console.log("连接失败", err);
})

module.exports = mongo  